import Vue from 'vue'
import Router from 'vue-router'

//维修列表
import Repair from '@/views/repair/RepairFw.vue'
//预约维修页面
import repairYy from '@/views/repair/RepairYy.vue'
//维修订单详情页面
import orderDetail from '@/views/person/OrderDetail.vue'
//维修订单列表页面
import orderList from '@/views/person/Order.vue'
//预约成功页面
import repairSuccess from '@/views/repair/RepairSuccess.vue'
//保洁预约成功页面
import freeCleanSuccess from '@/views/bjfw/freeCleanSuccess.vue'
//保洁服务列表
import Bjfw from '@/views/bjfw/Bjfw.vue'
//预约保洁页面
import Yuyue from '@/views/bjfw/Yuyue.vue'
//预约免费保洁页面
import YuyueFree from '@/views/bjfw/YuyueFree.vue'
//套餐列表页
import taoList from '@/views/bjfw/TaoList.vue'
//保洁套餐详情页面
import taocandetail from '@/views/bjfw/taocanDetail.vue'
import person from '@/views/person/Person.vue'
//套餐列表
import taocanlist from '@/views/bjfw/TaocanList.vue'
//充值页面
import chongzhi from '@/views/person/Chongzhi.vue'
//评价页面
import pingjia from '@/views/person/Pingjia.vue'
//商品订单页面
import myorder from '@/views/person/Myorder.vue'
//积分签到
import jifen from '@/views/person/Jifen.vue'
//我的信息
import myinfo from '@/views/person/Myinfo.vue'

//我的信息-管家费充值-老页面-现已不用
import gjfcz from '@/views/person/Guanjiafei.vue'

//我的信息-管家费充值-管家费到期时间
import gjfdata from '@/views/person/Gjfdata.vue'

//用户信息变更
import myinfoupdate from '@/views/person/MyinfoUpdate.vue'
//账户绑定
import myinfobind from '@/views/person/MyinfoBind.vue'

//充值成功
import chongzhisuccess from '@/views/person/Chongzhisuccess.vue'

//积分兑换
import credits from '@/views/person/Credits.vue'

//积分兑换详情页
import creditsDetail from '@/views/person/creditsDetail.vue'

//注册
import register from '@/views/person/register.vue'

//推荐有礼
import tuijian from '@/views/person/Tuijian.vue'
import tuijianlist from '@/views/person/TuijianList.vue'

//管家服务缴费
// import jiaofei from '@/views/person/Jiaofei.vue'

Vue.use(Router)

export default new Router({
    mode: 'history',
    base: process.env.BASE_URL,
    routes: [
        {
            path:'/',
            redirect:'/baojie',
        },
        {
            path: '/baojie',
            name: 'baojie',
            component: Bjfw
        },
        {
            path: '/taocandetail',
            name: 'taocandetail',
            component: taocandetail
        },
        {
            path: '/repair',
            name: 'repair',
            component: Repair
        },
        {
            path: '/yuyue',
            name: 'yuyue',
            component: Yuyue
        },
        {
            path: '/yuyuefree',
            name: 'yuyuefree',
            component: YuyueFree
        },
        {
            path: '/repairYy',
            name: 'repairYy',
            component: repairYy
        },
        {
            path: '/cleanSuccess',
            name: 'cleanSuccess',
            component: freeCleanSuccess
        },
        {
            path: '/repairSuccess',
            name: 'repairSuccess',
            component: repairSuccess
        },
        {
            path: '/orderDetail',
            name: 'orderDetail',
            component: orderDetail
        },
        {
            path: '/orderList',
            name: 'orderList',
            component: orderList
        },
        {
            path: '/person',
            name: 'person',
            component: person
        },
        {
            path: '/taocanlist',
            name: 'taocanlist',
            component: taocanlist
        },
        {
            path: '/taolist',
            name: 'taolist',
            component: taoList
        },
        {
            path: '/credits',
            name: 'credits',
            component: credits
        },
        {
            path: '/creditsDetail',
            name: 'creditsDetail',
            component: creditsDetail
        },
        {
            path: '/register',
            name: 'register',
            component: register
        },
        {
            path: '/chongzhi',
            name: 'chongzhi',
            component: chongzhi
        },
        {
            path: '/pingjia',
            name: 'pingjia',
            component: pingjia
        },
        {
            path: '/myorder',
            name: 'myorder',
            component: myorder
        },
        {
            path: '/jifen',
            name: 'jifen',
            component: jifen
        },
        {
            path: '/myinfo',
            name: 'myinfo',
            component: myinfo
        },
        {
            path: '/gjfcz',
            name: 'gjfcz',
            component: gjfcz
        },
        {
            path: '/chongzhisuccess',
            name: 'chongzhisuccess',
            component: chongzhisuccess
        },
        {
            path: '/gjfdata',
            name: 'gjfdata',
            component: gjfdata
        },
        {
            path: '/myinfoupdate',
            name: 'myinfoupdate',
            component: myinfoupdate
        },
        {
            path: '/myinfobind',
            name: 'myinfobind',
            component: myinfobind
        },
        {
            path: '/tuijian',
            name: 'tuijian',
            component: tuijian
        }, {
            path: '/tuijianlist',
            name: 'tuijianlist',
            component: tuijianlist
        }
    ]
})